fix: globally install corepack#4741
Merged
krystofwoldrich merged 1 commit intogetsentry:mainfrom Apr 11, 2025
trivikr:patch-1
Merged
fix: globally install corepack#4741krystofwoldrich merged 1 commit intogetsentry:mainfrom trivikr:patch-1
krystofwoldrich merged 1 commit intogetsentry:mainfrom
trivikr:patch-1
Conversation
Collaborator
lucas-zimerman
left a comment
There was a problem hiding this comment.
Looks good to me, thank you for your contribution!
Just a question unrelated to the PR, the new way of disabling corepack is to uninstall it globally? or the enable/disable commands are still valid after installed?
Contributor
Author
|
You can run enable/disable commands $ echo '{ "packageManager": "[email protected]" }' > package.json
$ npm i -g corepack
$ yarn --version
! Corepack is about to download https://repo.yarnpkg.com/4.9.0/packages/yarnpkg-cli/bin/yarn.js
? Do you want to continue? [Y/n] Y
4.9.0
$ corepack disable
$ yarn --version
zsh: command not found: yarn
$ corepack enable
$ yarn --version
4.9.0After disabling corepack, I get command not found as I don't have it globally installed. |
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📢 Type of change
📜 Description
Updates the corepack command to globally installing corepack.
💡 Motivation and Context
Corepack is not going to be distributed with Node.js v25+
TSC vote nodejs/TSC#1697 (comment)
💚 How did you test it?
CI
📝 Checklist
sendDefaultPIIis enabled🔮 Next steps
#skip-changelog